package com.blockchain.console.service.financial;

import com.blockchain.common.enums.GdState;
import com.blockchain.console.service.financial.entity.GdglRecord;
import com.blockchain.console.service.financial.query.GdglRecordQuery;
import com.blockchain.framework.service.Service;
import com.blockchain.framework.service.query.Paging;
import com.blockchain.framework.service.query.PagingResult;

public interface GdglManage extends Service {


	/**
	 * 描述：分页查询挂单列表
	 * 
	 * @param query
	 *            提现查询接口
	 * @param paging
	 *            分页对象
	 * @return PagingResult<UserExtractionRecord> 提现分页集合
	 * @throws Throwable
	 */
	public PagingResult<GdglRecord> search(GdglRecordQuery query, Paging paging)
			throws Throwable;
	
	/**
	 * 查询挂单详细
	 * 
	 * @param id
	 * @return
	 * @throws Throwable
	 */
	public GdglRecord get(int id) throws Throwable;
	
	/**
	 * <dt>
	 * <dl>
	 * 描述： 单个审核
	 * </dl>
	 * </dt>
	 * @param sellId 
	 * 
	 * @param serialNumber
	 *            挂单流水号
	 * @param flag
	 *            审核标志
	 * @throws Throwable
	 */
	public void check(GdState status, String check_reason, int id, GdglRecord gdglRecord) throws Throwable;

	/**
	 * <dt>
	 * <dl>
	 * 描述： 查询已拍下
	 * </dl>
	 * </dt>
	 * 
	 * @param serialNumber
	 *            挂单流水号
	 * @param flag
	 *            审核标志
	 * @throws Throwable
	 */
	public PagingResult<GdglRecord> searchYpx(GdglRecordQuery gdglRecordQuery, Paging paging) throws Throwable;

	public GdglRecord getPd(int id) throws Throwable;

	public void checkSu(GdState status, int id, GdglRecord gdglRecord) throws Throwable;

}
